home *** CD-ROM | disk | FTP | other *** search
/ Champak 66 / Vol 66.iso / games / doodle_d.swf / scripts / DefineButton2_165 / BUTTONCONDACTION on(release).as
Text File  |  2013-04-24  |  498b  |  24 lines

  1. on(release){
  2.    if(_root.points >= _root.drawPrice2)
  3.    {
  4.       _root.points -= _root.drawPrice2;
  5.       if(_root.purchased != 4)
  6.       {
  7.          _root.purchased = _root.purchased + 1;
  8.       }
  9.       if(_root.purchased == 1)
  10.       {
  11.          _root.rightLaser = true;
  12.       }
  13.       if(_root.purchased == 2)
  14.       {
  15.          _root.leftLaser = true;
  16.       }
  17.       if(_root.purchased == 3)
  18.       {
  19.          _root.backLaser = true;
  20.       }
  21.       _root.gotoAndStop("draw2");
  22.    }
  23. }
  24.